﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Com.Web.coffinegurunaru.AppLogic.Page;
using Com.Web.coffinegurunaru.AppLogic;
using Com.Framework;
using Com.Framework.Data;
using Com.Library.DB.Store;
using Com.Library.Page;

namespace Com.Web.coffinegurunaru.manager.banner
{
	public partial class storemethod : ManagerAjaxPage
	{
		public string MainStoreList()
		{
			List<StoreMainEntity> list = StoreModel.MainGetList(10);
			string retValue = string.Empty;
			Dictionary<string, object> properties = new Dictionary<string, object>();
			properties.Add("MainStoreList", list);
			retValue = ViewManager<ManagerPage>.Render("/manager/banner/mainstorelist.ascx", properties);

			return retValue;
		}

		public void MainStoreCreate(int StoreNo, string TitleImageURL, string TitleOverImageURL, string ImageURL)
		{
			StoreModel.MainCreate(StoreNo, TitleImageURL, TitleOverImageURL, ImageURL, this.WebCookies.ManagerName);
		}

		public void MainStoreModify(int StoreNo, string TitleImageURL, string TitleOverImageURL, string ImageURL)
		{
			StoreModel.MainModify(StoreNo, TitleImageURL, TitleOverImageURL, ImageURL, this.WebCookies.ManagerName);
		}

		public void MainStoreRemove(int StoreNo)
		{
			StoreModel.MainRemove(StoreNo);
		}
	}
}
